package es.javamyadmin.beans;

import java.io.Serializable;
import java.util.Collection;

import es.javamyadmin.modelo.Databases;
import es.javamyadmin.modelo.ModelFacade;

public class ListaDatabasesBean implements Serializable{

	private static final long serialVersionUID = 1L;
	private String user = new String();
	private String pass = new String();
	private String host = new String();
	private String port = new String();

	public ListaDatabasesBean(){
		super();
	}
	
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public Collection<Databases> getDatabases(){
		
		Collection<Databases> databases = ModelFacade.getDatabase(user, pass, host, port);
		
		return databases;
	}

}
